//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package 力扣.题库.未分类;

public class demo_459 {
    public demo_459() {
    }

    public static void main(String[] args) {
        System.out.println(repeatedSubstringPattern("abac"));
    }

    public static boolean repeatedSubstringPattern(String s) {
        String str = s + s;
        return str.substring(1, str.length() - 1).contains(s);
    }
}
